extends LabelWithFont

var score = 0
onready var HISCORE = $"../HiScore"

func _ready():
	update_label()

func bump_score ():
	score+=1
	update_label()

func update_label():
	text = "SCORE: " + str(score)

func reset():
	if HISCORE.score < score:
		HISCORE.set_score(score)
	score=0
	update_label()
